package com.guava;

import java.util.ArrayList;
import java.util.List;

public class PreconditionsDemo {


	public static void main(String[] args) {
		List<Aaa> li = new ArrayList<Aaa>(5);
		Aaa aaa = new Aaa("123");
		li.add(aaa);
		li.add(aaa);
		li.add(new Aaa("456"));

	}
 static class Aaa{
	 private String name ;

	public Aaa(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Override
	public String toString() {
		return "Aaa [name=" + name + "]";
	}
	 
 }
}
